<template>
    <div class="common-layout">
        <el-container>
            <!-- 左侧菜单栏 -->
            <el-aside>
                <TreeMenu :is-collapse="isCollapse"></TreeMenu>
            </el-aside>
            <el-container>
                <!-- 头部 -->
                <el-header>
                    <HeaderBreadcrumb @change-collapse="isCollapse = $event"></HeaderBreadcrumb>
                    <!-- 标签页 -->
                    <HeaderTags></HeaderTags>
                </el-header>
                <!-- 主体 -->
                <el-main>
                    <RouterView></RouterView>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>
<script setup lang="ts">
import { ref } from "vue";
import TreeMenu from '../components/navigation/TreeMenu.vue'
import HeaderTags from '../components/navigation/HeaderTags.vue'
import HeaderBreadcrumb from "@/components/navigation/HeaderBreadcrumb.vue";

//展开收缩菜单栏
const isCollapse = ref(false)




</script>
<style scoped lang="less">
.common-layout {
    height: 100%;
    .el-container {
        height: 100%;
        .el-aside {
            width: auto;
            height: 100%;
        }
        .el-header {
            width: 100%;
            height: 90px;
            justify-content: space-around;
            display: flex;
            flex-direction: column;
            border-bottom: 1px solid #ccc;
            padding: 0;
        }
    }
}

</style>